package maosy.oauth2.password.test

import org.apache.commons.codec.digest.DigestUtils
import org.junit.Test
import org.springframework.security.crypto.factory.PasswordEncoderFactories

class PWDTest {

    @Test
    fun pwdTest() {
        val pwd = PasswordEncoderFactories.createDelegatingPasswordEncoder().encode(DigestUtils.md5Hex("123456"))
        println(pwd)
        println(pwd.length)
    }
}